Optimal. Leaf size=148 \[ \frac{e \left (b^2-4 a c\right ) (2 c d-b e) \tanh ^{-1}\left (\frac{b+2 c x}{2 \sqrt{c} \sqrt{a+b x+c x^2}}\right )}{4 c^{5/2}}+\frac{\sqrt{a+b x+c x^2} \left (-2 c e (4 a e+3 b d)+3 b^2 e^2+2 c e x (2 c d-b e)+8 c^2 d^2\right )}{6 c^2}+\frac{2}{3} (d+e x)^2 \sqrt{a+b x+c x^2} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.447978, antiderivative size = 148, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143 \[ \frac{e \left (b^2-4 a c\right ) (2 c d-b e) \tanh ^{-1}\left (\frac{b+2 c x}{2 \sqrt{c} \sqrt{a+b x+c x^2}}\right )}{4 c^{5/2}}+\frac{\sqrt{a+b x+c x^2} \left (-2 c e (4 a e+3 b d)+3 b^2 e^2+2 c e x (2 c d-b e)+8 c^2 d^2\right )}{6 c^2}+\frac{2}{3} (d+e x)^2 \sqrt{a+b x+c x^2} \]
Antiderivative was successfully verified.
[In] Int[((b + 2*c*x)*(d + e*x)^2)/Sqrt[a + b*x + c*x^2],x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 46.2733, size = 144, normalized size = 0.97 \[ \frac{2 \left (d + e x\right )^{2} \sqrt{a + b x + c x^{2}}}{3} + \frac{\sqrt{a + b x + c x^{2}} \left (- 8 a c e^{2} + 3 b^{2} e^{2} - 6 b c d e + 8 c^{2} d^{2} - 2 c e x \left (b e - 2 c d\right )\right )}{6 c^{2}} - \frac{e \left (- 4 a c + b^{2}\right ) \left (b e - 2 c d\right ) \operatorname{atanh}{\left (\frac{b + 2 c x}{2 \sqrt{c} \sqrt{a + b x + c x^{2}}} \right )}}{4 c^{\frac{5}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((2*c*x+b)*(e*x+d)**2/(c*x**2+b*x+a)**(1/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.173095, size = 123, normalized size = 0.83 \[ \frac{\sqrt{a+x (b+c x)} \left (-2 c e (4 a e+3 b d+b e x)+3 b^2 e^2+4 c^2 \left (3 d^2+3 d e x+e^2 x^2\right )\right )}{6 c^2}-\frac{e \left (b^2-4 a c\right ) (b e-2 c d) \log \left (2 \sqrt{c} \sqrt{a+x (b+c x)}+b+2 c x\right )}{4 c^{5/2}} \]
Antiderivative was successfully verified.
[In] Integrate[((b + 2*c*x)*(d + e*x)^2)/Sqrt[a + b*x + c*x^2],x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.015, size = 280, normalized size = 1.9 \[ -{\frac{b{e}^{2}x}{3\,c}\sqrt{c{x}^{2}+bx+a}}+2\,dex\sqrt{c{x}^{2}+bx+a}+{\frac{{b}^{2}{e}^{2}}{2\,{c}^{2}}\sqrt{c{x}^{2}+bx+a}}-{\frac{bde}{c}\sqrt{c{x}^{2}+bx+a}}-{\frac{{b}^{3}{e}^{2}}{4}\ln \left ({1 \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx+a} \right ){c}^{-{\frac{5}{2}}}}+{\frac{{b}^{2}de}{2}\ln \left ({1 \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx+a} \right ){c}^{-{\frac{3}{2}}}}+{ab{e}^{2}\ln \left ({1 \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx+a} \right ){c}^{-{\frac{3}{2}}}}-2\,{\frac{aed}{\sqrt{c}}\ln \left ({\frac{b/2+cx}{\sqrt{c}}}+\sqrt{c{x}^{2}+bx+a} \right ) }+2\,{d}^{2}\sqrt{c{x}^{2}+bx+a}+{\frac{2\,{e}^{2}{x}^{2}}{3}\sqrt{c{x}^{2}+bx+a}}-{\frac{4\,a{e}^{2}}{3\,c}\sqrt{c{x}^{2}+bx+a}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((2*c*x+b)*(e*x+d)^2/(c*x^2+b*x+a)^(1/2),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((2*c*x + b)*(e*x + d)^2/sqrt(c*x^2 + b*x + a),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.424906, size = 1, normalized size = 0.01 \[ \left [\frac{4 \,{\left (4 \, c^{2} e^{2} x^{2} + 12 \, c^{2} d^{2} - 6 \, b c d e +{\left (3 \, b^{2} - 8 \, a c\right )} e^{2} + 2 \,{\left (6 \, c^{2} d e - b c e^{2}\right )} x\right )} \sqrt{c x^{2} + b x + a} \sqrt{c} + 3 \,{\left (2 \,{\left (b^{2} c - 4 \, a c^{2}\right )} d e -{\left (b^{3} - 4 \, a b c\right )} e^{2}\right )} \log \left (-4 \,{\left (2 \, c^{2} x + b c\right )} \sqrt{c x^{2} + b x + a} -{\left (8 \, c^{2} x^{2} + 8 \, b c x + b^{2} + 4 \, a c\right )} \sqrt{c}\right )}{24 \, c^{\frac{5}{2}}}, \frac{2 \,{\left (4 \, c^{2} e^{2} x^{2} + 12 \, c^{2} d^{2} - 6 \, b c d e +{\left (3 \, b^{2} - 8 \, a c\right )} e^{2} + 2 \,{\left (6 \, c^{2} d e - b c e^{2}\right )} x\right )} \sqrt{c x^{2} + b x + a} \sqrt{-c} + 3 \,{\left (2 \,{\left (b^{2} c - 4 \, a c^{2}\right )} d e -{\left (b^{3} - 4 \, a b c\right )} e^{2}\right )} \arctan \left (\frac{{\left (2 \, c x + b\right )} \sqrt{-c}}{2 \, \sqrt{c x^{2} + b x + a} c}\right )}{12 \, \sqrt{-c} c^{2}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((2*c*x + b)*(e*x + d)^2/sqrt(c*x^2 + b*x + a),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{\left (b + 2 c x\right ) \left (d + e x\right )^{2}}{\sqrt{a + b x + c x^{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((2*c*x+b)*(e*x+d)**2/(c*x**2+b*x+a)**(1/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.289336, size = 197, normalized size = 1.33 \[ \frac{1}{6} \, \sqrt{c x^{2} + b x + a}{\left (2 \,{\left (2 \, x e^{2} + \frac{6 \, c^{2} d e - b c e^{2}}{c^{2}}\right )} x + \frac{12 \, c^{2} d^{2} - 6 \, b c d e + 3 \, b^{2} e^{2} - 8 \, a c e^{2}}{c^{2}}\right )} - \frac{{\left (2 \, b^{2} c d e - 8 \, a c^{2} d e - b^{3} e^{2} + 4 \, a b c e^{2}\right )}{\rm ln}\left ({\left | -2 \,{\left (\sqrt{c} x - \sqrt{c x^{2} + b x + a}\right )} \sqrt{c} - b \right |}\right )}{4 \, c^{\frac{5}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((2*c*x + b)*(e*x + d)^2/sqrt(c*x^2 + b*x + a),x, algorithm="giac")
[Out]